package com.linfeng.component.mybatisplus.executor.qry;

import com.linfeng.component.mybatisplus.entity.IEntity;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

public class DetailQryExe<D, E extends IEntity> {

    @Autowired
    private E entity;

    public D execute(Serializable id) {

        return (D) entity.getById(id);
    }
}
